<template>
  <div class="good-list">
    <goods-item
      v-for="(item, index) in goods"
      :key="index"
      :goodsitem="item"
    ></goods-item>
  </div>
</template>

<script>
import GoodsItem from "./GoodsItem.vue";

export default {
  components: { GoodsItem },
  props: {
    goods: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style>
.good-list {
  /* float: left;
  height: 100%; */
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
</style>